package com.biwano.swapmyjob.beans.application;

import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import com.biwano.swapmyjob.dao.JobTypeDao;
import com.biwano.swapmyjob.objects.JobType;


@ManagedBean
@ApplicationScoped
public class JobTypesBean {
	
	@EJB
	JobTypeDao jobTypeDao;
	
	List<JobType> list;

	public List<JobType> getList() {
		if (list==null)
			list = jobTypeDao.getAllEntities();
		return list;
	}

	public void setList(List<JobType> list) {
		this.list = list;
	}
	
}
